﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;

namespace Devonline.Identity.Admin.Controllers;

/// <summary>
/// 客户端管理
/// </summary>
[Route("api/[controller]")]
[ApiController]
[SecurityHeaders]
[Authorize(Roles = GROUP_MAINTAINERS)]
public class ClientsController(
    AdminSetting appSetting,
    IdentityDbContext dbContext,
    UserManager<User> userManager,
    SignInManager<User> signInManager,
    ILogger<ClientsController> logger) : ControllerBase
{
    private readonly AdminSetting _appSetting = appSetting;
    private readonly IdentityDbContext _dbContext = dbContext;
    private readonly UserManager<User> _userManager = userManager;
    private readonly SignInManager<User> _signInManager = signInManager;
    private readonly ILogger<ClientsController> _logger = logger;
}